#include "permutations.h"
#include <stdio.h>
#define NUMBER 20

int main () {

  int i;
  int perms[NUMBER];
  for(i = 0; i < NUMBER; i++) {
    perms[i] = i;
  }
  
  while( permutation_next(perms, NUMBER)) {
    for(i = 0; i < NUMBER; i++) {
      printf("%d\t", perms[i]);
    }
    printf("\n");
  }
  return 0;
}
